package com.example.strategy;

import com.example.strategy.context.PaymentContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class StrategyApplication {

    @Autowired
    private static PaymentContext paymentContext;

    public static void main(String[] args) {
        SpringApplication.run(StrategyApplication.class, args);
        paymentContext.pay("WeChat",100);
    }

}
